﻿using System;
using Pets;
using System.Collections.Generic;


namespace HelloWorld
{
    class Program
    {
        static void Main(string[] args)
        {
            int a = 3, b = 8;
            int c = a * b;

            Console.WriteLine("Hello World!");

                List<IPet> pets = new List<IPet>
               {
                 new Dog(),
                 new Cat() 
               };

            foreach (var pet in pets)
            {
                Console.WriteLine(pet.TalkToOwner());
            }

        }
    }
}
